<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
        <title><?php echo $RSS_title?></title>
        <description><?php echo $RSS_description?></description>
        <link><?php echo $RSS_link?></link>
        <lastBuildDate><?php echo ($RSS_buildDate)? $RSS_buildDate : date('r')?></lastBuildDate>
        <pubDate><?php echo ($RSS_pubDate)? $RSS_pubDate : date('r')?></pubDate>
        <ttl><?php echo ($ttl)? $RSS_ttl : '1800' ?></ttl>
 
<?php foreach($articles as $article) { ?>
        <item>
                <title><?php echo $article['title']?></title>
                <description><?php echo $article['description']?></description>
                <link><?php echo $article['link']?></link>
                <guid><?php echo $article['guid']?></guid>
                <pubDate><?php echo ($article['pubDate'])? $article['pubDate'] : date('r') ?></pubDate>
        </item>
 <?php } ?>
</channel>
</rss>